<include file="public:top"/>
<div class="container">
    <div class="maincontent">
        <h3 class="pull-left">
            <i class="glyphicon glyphicon-book"></i>
            班级文章<small>Class dynamics</small>
        </h3>
        <notempty name='isHasInsert'>
            <div class="pull-right addButton">
                <a href="Acontent_add">添加文章</a>
            </div>
        </notempty>
        <div class="clear"></div>
        <div class='hr'></div>
        <div class="row">
            <div class="col-md-4">
                <div><include file="public:left"/></div>
            </div>
            <div class="col-md-8">
                <foreach name="warray" item="vo" key="key">
                    <div class="contentPadding">
                        <div >
                            <div class="pull-left">
                                <span class="numberTitle">{{$key+1}}、</span>
                                <a href="<?php echo Url::articleDetail($vo['ar_id']);?>">
                                    {{$vo.ar_title|msubstr=0,100,'utf-8',false}}
                                </a>
                            </div>
                            <!--删除-->
                            <notempty name='isHasDelete'>
                                <div class="pull-right deleteMar">
                                    <a href="AcontentDel?did={{$vo.ar_id}}" class="glyphicon glyphicon-trash"></a>
                                </div>
                            </notempty>
                            <!--时间-->
                            <div class="pull-right dateTime">
                                {{$vo.ar_date|date='Y-m-d',###}}
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="hr"></div>
                </foreach>
                <empty name='warray'>
                    <h5>亲，去创建第一篇文章吧！</h5>
                </empty>
                <p>{{$page}}</p>
            </div>
        </div>
    </div>
</div>
<include file="public:footer"/>
